package com.tianji.learning.service;

import com.tianji.api.dto.trade.OrderBasicDTO;
import com.tianji.common.domain.dto.PageDTO;
import com.tianji.common.domain.query.PageQuery;
import com.tianji.learning.domain.po.LearningLesson;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.vo.LearningLessonVO;
import com.tianji.learning.domain.vo.LearningPlanPageVO;

/**
 * <p>
 * 学生课程表 服务类
 * </p>
 *
 * @author rui
 * @since 2024-07-10
 */
public interface ILearningLessonService extends IService<LearningLesson> {

    void addLearningLesson(OrderBasicDTO dto);

    PageDTO<LearningLessonVO> pageQuery(PageQuery pageQuery);

    LearningLessonVO getByNow();

    void deleteByCourseId(Long courseId);

    Long isLessonValid(Long courseId);

    LearningLessonVO getByCourseId(Long courseId);

    Integer countLearningLessonByCourse(Long courseId);

    void createLearningPlan(Long courseId, Integer freq);

    LearningPlanPageVO queryLearningPlans(PageQuery pageQuery);
}
